package com.zhou.common.base.mq.model;

/**
 * <pre>
 *     @author : loktar
 *     @e-mail : aakosp@gmail.com
 *     @time   : 2020-04-20
 *     @desc   :
 *     @version: 1.0
 * </pre>
 */
public enum ResponseEnum {
    /**
     * 返回码
     */
    SUCCESS(0, "操作成功"),
    UC_API_EXCEPTION(30000, "用户服务异常"),
    PARAM_ERROR(30001, "参数异常"),
    EXCEPTION(9999, "系统在开小差，请稍后重试");

    private Integer code;
    private String name;

    ResponseEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}